package com.zsl.swing.redis.desktop.window.builder;

import com.zsl.swing.redis.desktop.type.BooleanEnum;

import javax.swing.*;

public class BooleanComboBoxBuilder {

    private BooleanComboBoxBuilder(){}

    public static JComboBox<String> getInstance(){
        JComboBox<String> comboBox = new JComboBox<>();
        comboBox.addItem(BooleanEnum.TRUE.getText());
        comboBox.addItem(BooleanEnum.FALSE.getText());
        return comboBox;
    }
}
